package com.jason.learn.springcloud.orderservice.feignapi;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.math.BigDecimal;

@FeignClient(name="railwayticket-account")
public interface AccountFeignApi {
    @RequestMapping(value = "/accountChange/addAmount",method = RequestMethod.GET)
    public boolean addAmount(Long accountId, BigDecimal amount);

    @RequestMapping(value = "/accountChange/reduceAmount",method = RequestMethod.GET)
    public boolean reduceAmount(Long accountId, BigDecimal amount);
}
